<?php
if ($_GET['pay'] == 'paypal') {
	$url = 'https://www.paypal.com/cgi-bin/webscr?';
} else {
	$url = 'http://pay.beijing.com.cn/prs/e_user_payment.checkit?';
}
unset($_GET['pay']);
$param = http_build_query($_GET);
header('Location: ' . $url . $param);